import { LOLS } from '@/api/types';
import instance from '@/utils/request';
import React, { useEffect } from 'react'

export default function LoLCom() {
  //发送请求
  useEffect(() => {
    let getLoL = async () => {
      //发送请求
      let result = await instance.get<any, LOLS>('/lol');

      result.forEach(item => {
        console.log(item.name);
      })
    }

    getLoL();
  }, [])

  return (
    <div>04_LoLCom</div>
  )
}
